
import 'dart:convert';

AssignmentSearchDto assignmentSearchDtoFromJson(String str) =>
    AssignmentSearchDto.fromJson(json.decode(str));

String assignmentSearchDtoToJson(AssignmentSearchDto data) =>
    json.encode(data.toJson());

class AssignmentSearchDto {
  AssignmentSearchDto({
    this.assignmentType,
    this.filteredBy,
    this.from,
    this.to,
    this.past,
    this.live,
    this.queued,
    this.limit,
    this.pageNum,
    this.sortField,
  });

  String? assignmentType;
  dynamic filteredBy;
  dynamic from;
  dynamic to;
  bool? past;
  bool? live;
  bool? queued;
  int? limit;
  int? pageNum;
  String? sortField;

  factory AssignmentSearchDto.fromJson(Map<String, dynamic> json) =>
      AssignmentSearchDto(
        assignmentType: json["assignmentType"],
        filteredBy: json["filteredBy"],
        from: json["from"],
        to: json["to"],
        past: json["past"],
        live: json["live"],
        queued: json['queued'],
        limit: json["limit"],
        pageNum: json["pageNum"],
        sortField: json["sortField"],
      );

  Map<String, dynamic> toJson() => {
        "assignmentType": assignmentType,
        "filteredBy": filteredBy,
        "from": from,
        "to": to,
        "past": past,
        "live": live,
        'queued': queued,
        "limit": limit,
        "pageNum": pageNum,
        "sortField": sortField,
      };
}
